//
//  RegistryViewController.h
//  Politics
//
//  Created by Hai Nguyen on 7/4/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RegistryParser.h"

typedef enum RegisterStatus  {
	RegisterCancel = 0,
	RegisterSusccess
} RegisterStatus;


@protocol RegistryViewDelegate;

@interface RegistryViewController : UIViewController <RegistryParserDelegate>
{
	IBOutlet UIScrollView *scrollView;
	IBOutlet UITextField	*usernameTextField;
	IBOutlet UITextField	*passwordTextField;
	IBOutlet UITextField	*password2TextField;
	IBOutlet UITextField	*emailTextField;
	IBOutlet UITextField	*firstNameTextField;
	IBOutlet UITextField	*lastNameTextField;
	IBOutlet UITextField	*genderTextField;
	IBOutlet UITextField	*cityTextField;
	IBOutlet UITextField	*stateTextField;
	IBOutlet UIButton		*maleCheckButton;
	IBOutlet UIButton		*femaleCheckButton;
	
	IBOutlet UIView *bgRegisterView;
	id<RegistryViewDelegate> controller;
	int status;
}

@property (nonatomic,retain) id<RegistryViewDelegate> controller;

- (IBAction) buttonPressed:(id) sender;
- (void) submitRegistry;
@end

@protocol RegistryViewDelegate 

- (void)finishRegistryWithStatus:(int)status;

@end